package Demo5;

import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int arr[] = new int[n];
        String string = "";
        int m = 0;


        while(m < n){
            try{
                string = sc.nextLine();
                int data1 = Integer.parseInt(string);
                arr[m] = data1;
                m++;
            }
            catch (NumberFormatException e){
                if (!string.equals(""))
                    System.out.println("java.lang.NumberFormatException: For input string: \""+string+"\"");
            }
        }
        System.out.println(Arrays.toString(arr));
    }
}